<template>
  <div class="page-index">
    <div class="page-left">
      <div class="page-left-top">
        <div class="info-box">
          <div class="info-img">
            <img src="" />
          </div>
          <div>
            <div>{{ '早上好，张三' }}</div>
            <div>{{ '江宁区秣陵街道第一支部－科员' }}</div>
            <div>{{ '今天是你入党的109天' }}</div>
          </div>
        </div>
        <div>为中国人民谋幸福,为中华民族谋复兴。</div>
      </div>
      <div class="page-left-bottom">
        <div class="to-do-list">
          <div class="title">待办事项（9）</div>
          <div class="list">
            <div class="list-li">全部（19）</div>
            <div class="list-li">请假审批（19）</div>
          </div>
        </div>
      </div>
    </div>
    <div class="page-right">
      <div class="table-box">
        <el-table
          :data="tableData"
          height="100%"
        >
          <el-table-column prop="id" label="ID" align="center" width="50" />
          <el-table-column prop="lotName" label="名称" align="center" min-width="150" />
          <el-table-column prop="lotName" label="学习时间" align="center" width="160" />
          <el-table-column prop="lotName" label="学习地点" align="center" min-width="150" />
          <el-table-column prop="lotName" label="提交人" align="center" min-width="120" />
          <el-table-column prop="lotName" label="提交时间" align="center" width="160" />
          <el-table-column label="操作" align="center" width="120">
            <template slot-scope="scope">
              <el-button
                type="text"
                size="mini"
                @click="openDetail(scope.row)"
              >查看</el-button>
              <el-button
                type="text"
                size="mini"
                style="color:#F56C6C;"
                @click="openDelete(scope.row)"
              >删除</el-button>
            </template>
          </el-table-column>
        </el-table>
      </div>
      <pagination
        :total="total"
        :page.sync="queryParams.pageNo"
        :limit.sync="queryParams.pageSize"
        @pagination="getData"
      />
    </div>
  </div>
</template>
<script>
export default {
  data () {
    return {
      queryParams: {
        pageNo: 1,
        pageSize: 10
      },
      total: 0,
      tableData: [
        { id: 1 }
      ]
    }
  }
}
</script>
<style scoped lang="scss">
.page-index {
  padding-top: 24px;
  display: flex;
  .page-left {
    width: 400px;
  }
  .page-right {
    flex: 1;
    height: calc(100vh - 124px);
  }
}

</style>
